import React, { useState } from 'react';

import PlayerModalC from './PlayerModal';

const Player: React.FC<any> = (props) => {

  const [visible, setVisible] = useState<boolean>(false);

  const playerModalProps = {
    visible,
    onClose: () => {
      setVisible(false)
    }
  }

  return (
    <>
      <p onClick={() => { setVisible(true) }}>打开弹框播放器11</p>
      <PlayerModalC {...playerModalProps} />
    </>
  )
}

export default Player;